{extend name="../../admin/view/main"}


{block name="content"}
<div class="layui-tab layui-tab-card">
    <div class="layui-tab-content">
        {include file='activity/user/user/index_search'}
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='nowrap'>用户名称</th>
                <th class='nowrap'>邮箱地址</th>
                <th class='nowrap'>联系电话</th>
                <th class='nowrap'>用户性别</th>
                <th class='nowrap'>婚姻状态</th>
                <th  width="100">现居住地</th>
                <th class='nowrap'>生日</th>
                <th class='nowrap'>身份</th>
                <th class='nowrap'>职业</th>
                <th class='nowrap'>公司</th>
                <th class='nowrap'>职称</th>
                <th class='nowrap'>学历</th>
                <th class='nowrap'>学科</th>
                <th class='nowrap'>创建时间</th>
                <th class='nowrap'>用户状态</th>
                <th class='nowrap'></th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class="nowrap">
                    <img src="{$vo.profile}" alt="" style="width:50px;height:50px;border-radius:50%">
                    {$vo.name|default='-'}
                </td>

                <td class="nowrap">
                    {$vo.email|default='-'}
                </td>
                <td class="nowrap">
                    {$vo.phone|default='-'}
                </td>
                <td class="nowrap">
                    {if $vo.gender == 1} 
                        男
                    {elseif $vo.gender == 2 /} 
                        女
                    {else /} 
                         保密 
                    {/if}
                  
                </td>
                <td class="nowrap">
                    {if $vo.gender == 1} 
                        已婚
                    {elseif $vo.gender == 2 /} 
                        未婚
                    {elseif $vo.gender == 3 /}   
                      离异 
                    {else /} 
                         保密 
                    {/if}
                  
                </td>
                <td>
                    {$vo.address|default='-'}
                </td>
                <td class="nowrap">
                    {$vo.birth|default='-'}
                </td>
                <td class="nowrap">
                    {$vo.identity|default='-'}
                </td>
                <td class="nowrap">
                    {$vo.profession|default='-'}
                </td>
                <td class="nowrap">
                    {$vo.company|default='-'}
                </td>
                <td class="nowrap">
                    {$vo.job_title|default='-'}
                </td>
                <td class="nowrap">
                    {$vo.educational|default='-'}
                </td>
                <td class="nowrap">
                    {$vo.subject|default='-'}
                </td>
                <td class="nowrap">
                    {$vo.create_time|default='-'}
                </td>
                <td class="nowrap">
                    {if $vo.status eq 2}<b class="color-red">已禁用</b>{elseif $vo.status eq 1}<b class="color-green">正常</b>{/if}
                </td>

                <td class="nowrap">
                    <!--{if auth("state") and $vo.status eq 1}-->
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="{:url('state')}" data-confirm="确定要禁用此用户吗？" data-value="id#{$vo.id};status#2">禁用</a>
                    <!--{/if}-->

                    <!--{if auth("state") and $vo.status eq 2}-->
                    <a class="layui-btn layui-btn-sm layui-btn-normal" data-action="{:url('state')}" data-confirm="确定要禁用此用户吗？" data-value="id#{$vo.id};status#1">解禁</a>
                    <!--{/if}-->
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
</div>
{/block}
